package tut.Struct.collection.phan1.map.HashCode;

public class EmployeeKey {
    int        employeeId;
    String     name;
  //  Department dept;

    // other methods would be in here

    @Override
    public int hashCode() {
        int hash = 1;
        hash = hash * 17 + employeeId;
        hash = hash * 31 + name.hashCode();
     //   hash = hash * 13 + (dept == null ? 0 : dept.hashCode());
        return hash;
    }
}